package com.ibm.law.ui.system.setup;

import java.util.List;

import org.eclipse.nebula.jface.gridviewer.GridTableViewer;
import org.eclipse.nebula.jface.gridviewer.GridViewerColumn;
import org.eclipse.nebula.widgets.grid.Grid;
import org.eclipse.nebula.widgets.grid.GridColumn;
import org.eclipse.nebula.widgets.grid.GridColumnGroup;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;

import com.ibm.law.domain.ChargeItem;

public class TestColumnGroup extends Composite {
	private List<ChargeItem> chargeItems;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public TestColumnGroup(Composite parent, int style) {
		super(parent, style);
		setLayout(new FillLayout(SWT.HORIZONTAL));
		
		GridTableViewer gridTableViewer = new GridTableViewer(this, SWT.BORDER);
		Grid grid = gridTableViewer.getGrid();
		grid.setHeaderVisible(true);
		
		GridViewerColumn gridViewerColumn = new GridViewerColumn(gridTableViewer, SWT.NONE);
		GridColumn gridColumn = gridViewerColumn.getColumn();
		gridColumn.setWidth(100);
		gridColumn.setText("New Column");
		
		GridViewerColumn gridViewerColumn_1 = new GridViewerColumn(gridTableViewer, SWT.NONE);
		GridColumn gridColumn_1 = gridViewerColumn_1.getColumn();
		gridColumn_1.setWidth(100);
		gridColumn_1.setText("New Column");
		
		
		
		GridColumnGroup gridColumnGroup = new GridColumnGroup(grid, SWT.NONE);
		gridColumnGroup.setText("New Group");
		

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
